From 01e33aa3323357feb1337e202d50b6af1e046b86 Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 2 Nov 2008 19:45:37 +0000 Subject: [PATCH] Garmin: fix crash when reading routes. Skyforce: doc tweaks. --- garmin.c | 2 +- xmldoc/formats/skyforce.xml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/garmin.c b/garmin.c index 0fe9efc8c..c62e465e2 100644 --- a/garmin.c +++ b/garmin.c @@ -509,7 +509,7 @@ route_read(void) if (array[i]->islink) { continue; } else { - waypoint *wpt_tmp = xcalloc(sizeof (*wpt_tmp), 1); + waypoint *wpt_tmp = waypt_new(); wpt_tmp->latitude = array[i]->lat; wpt_tmp->longitude = array[i]->lon; wpt_tmp->shortname = array[i]->ident; diff --git a/xmldoc/formats/skyforce.xml b/xmldoc/formats/skyforce.xml index c3a91a927..461ca41e0 100644 --- a/xmldoc/formats/skyforce.xml +++ b/xmldoc/formats/skyforce.xml @@ -1,11 +1,12 @@ This format provides support for ascii files from Skyforce PC interface for  - Skymap IIIC, Skymap II (Version 4) and KMD 150. Based on their interface description our module - was developed. + Skymap IIIC, Skymap II (Version 4) and KMD 150. Our module was developed + from their interface description. - Each kind of our basic GPS data (waypoints, routes or tracks) is stored in a seperate file. Thatswhy you - need three steps to convert a complex format as GPX or GDB into skyforce. + Each kind of our basic GPS data (waypoints, routes, and tracks) is + stored in a seperate file. Therefore you need three steps to + convert a complex format like GPX or GDB into skyforce. gpsbabel -i gpx -f file.gpx -o skyforce -w -F waypoints.txt -r -F routes.txt -t -F tracks.txt -- 2.30.2